import React from 'react'
import { useSelector } from 'react-redux'
import Item from './Item'
export default function Main() {
    const tesk = useSelector(state => state.tesk.tesk)
    return (

        <div>
            <ul className="todo-main">
            {tesk.map(item=>{
                return    <Item key={item.id} {...item} />
                
            })}
            </ul>
        </div>

    )
}
